package com.tjp.eight.ui.fragment.comment;

import com.tjp.eight.ResultModel;

import org.w3c.dom.Comment;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2017/3/8.
 */

public interface CommentService {
    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("comment/listdata")
    Observable<CommentResultModel> loadCommentData(@Body RequestBody requestBody);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("comment/submit")
    Observable<SendCommentResultModel> sendComment(@Body RequestBody requestBody);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("comment/praise")
    Observable<ZanCommentResultModel> zanComment(@Body RequestBody req);
}
